﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace QuanLyThuNgan
{
    public class CaThuNganCTL
    {
        CaThuNganDAO data = new CaThuNganDAO();
        public bool m_InsertCaThuNgan(CaThuNganDTO _info)
        {
            return data.m_Insert(_info);
        }

        public bool m_UpdateCaThuNgan(CaThuNganDTO _info)
        {
            return data.m_Update(_info);
        }
        public string m_InsertCaThuNgan_refe(CaThuNganDTO _info)
        {
            return data.m_Insert_refe(_info);
        }

        public string m_UpdateCaThuNgan_refe(CaThuNganDTO _info)
        {
            return data.m_Update_refe(_info);
        }
        public string m_DeleteCaThuNgan(CaThuNganDTO _info)
        {
            return data.m_Delete(_info);
        }

        public DataTable m_SelectAllCaTN()
        {
            return data.m_SelectAllCaThuNgan();
        }

        public DataTable m_SelectAllCaTN_All(int _IDThuNgan, string _NgayDangKy)
        {
            return data.m_SelectAllCaThuNgan_all(_IDThuNgan,_NgayDangKy);
        }
        public DataTable m_SelectAllCaThuNgan_all_moi(int IDThuNgan)
        {
            return data.m_SelectAllCaThuNgan_all_moi(IDThuNgan);
        }
        public DataTable m_SelectAll_NguoiDung_CaThuNgan(int _IDCaThuNgan,int _idnguoidung)
        {
            return data.m_SelectAll_NguoiDung_CaThuNgan(_IDCaThuNgan,_idnguoidung);
        }
        public DataTable m_SelectKiemTra(int idnguoidung)
        {
            return data.m_SelectKiemTra_IDCaNguoiDung(idnguoidung);
        }
        #region "LeThanhDung"

        public DataTable m_SelectAll_XacNhanHetCa(int _idnguoidung)
        {
            return data.m_SelectAll_XacNhanHetCa(_idnguoidung);
        }

        public bool m_UpdateXacNhanHC(CaThuNganDTO _info)
        {
            return data.m_UpdateXacNhanHetCa(_info);
        }

        public DataTable m_SelectXacNhanNopTien(string _TuNgay, string _DenNgay)
        {
            return data.m_SelectDanhSachXacNhanNopTien(_TuNgay, _DenNgay);
        }

        public DataTable m_SelectChiTietNopTien(int _IDCaThuNgan)
        {
            return data.m_SelectChiTietNopTien(_IDCaThuNgan);
        }

        public bool m_UpdateXacNhanThuTien(CaThuNganDTO _info)
        {
            return data.m_UpdateXacNhanThuTien(_info);
        }
        //danh sach nop tien-------------------------------------
        public DataTable m_SelectDanhSachNopTien(string _TuNgay, string _DenNgay)
        {
            return data.m_SelectDanhSachNopTien(_TuNgay, _DenNgay);
        }

        //in het ca
        public DataTable m_SelectInHetCa(int _IDNguoiDung)
        {
            return data.m_SelectInHetCa(_IDNguoiDung);
        }

        //load kiem tra nguoi dung : Thanh toan xuat vien-------
        public DataTable m_SelectKiemTraNguoiDungTTXV(int iIDNguoiDung)
        {
            return data.m_SelectKiemTra_IDCaNguoiDung(iIDNguoiDung);
        }
        #endregion

    }
}
